#include"head.h"

int mkdir_m(const char*path , mode_t mode)
{
    char buf[1024] = {0} ;
    int ret = -1 ;
    int m_ret = mkdir(path , mode);
    if(m_ret == 0)
    {
        ret = 1 ;
    }
    else if(m_ret == -1 )
    {
        ret = -1 ;
        printf("mkdir fail !\n");
    }

    return ret ;
}